package com.ray.ray.util;

import java.util.List;

import android.content.Context;

public class ConnectionChange {

	/**
	 * ��MMS
	 * 
	 * @param context
	 * @param number
	 * @param subject
	 * @param text
	 * @param imagePath
	 * @param audioPath
	 */
	public static void sendMMS(final Context context, String number,
			String subject, String text, String imagePath, String audioPath) {
		final MMSInfo mmsInfo = new MMSInfo(context, number, subject, text,
				imagePath, audioPath);
		final List<String> list = APNManager.getSimMNC(context);
		new Thread() {
			@Override
			public void run() {
				try {
					byte[] res = MMSSender.sendMMS(context, list,
							mmsInfo.getMMSBytes());
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			};
		}.start();
	}
}
